package com.lz.water.monitor.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.lz.water.monitor.util.ResponseDataPackageUtils;

@RestController
@RequestMapping("/index")
public class IndexController {

	@RequestMapping("/")
	String index() {
		return "hello,index!";
	}

	@RequestMapping(value = "/test", method = RequestMethod.GET)
	public String test() {
		return ResponseDataPackageUtils.success();
	}
}
